package com.smart.model.dtomapper;

import com.smart.model.domain.StreetDO;
import com.smart.model.request.StreetRequest;
import com.smart.model.vo.StreetVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface StreetDtoMapper {

    StreetDtoMapper INSTANCE = Mappers.getMapper(StreetDtoMapper.class);

    /**
    * DO to VO
    * @param streetDO
    * @return
    */
    StreetVO do2VO(StreetDO streetDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    StreetDO request2DO(StreetRequest request);
}
